const router = require('koa-router')();
const userctrl = require('./controllers/user'); // 引入用户模块逻辑层

router
  .get('/user/info', userctrl.info)
  .get('/user/list', userctrl.list)
  .post('/user/register', userctrl.register)
  .post('/user/login', userctrl.login)
  .post('/user/update',userctrl.update)
  .get('/user/getmsglist',userctrl.getmsglist)
  .post('/user/readmsg',userctrl.readmsg)
module.exports = router